import request from '@/axios/request';
import url from '@/axios/url';
const { mesUrl, adminUrl } = url();
// 导出url
export const exportUrl = `${mesUrl}wmsIqcTask/export`
// 获取详情
export function getInfo (id = '') {
  return request({
    url: `${mesUrl}wmsIqcTask/info/${id}`,
    method: 'get'
  })
}
//分页查询
export function getList(params = {}) {
  return request({
    url: `${mesUrl}wmsIqcTask`,
    method: 'get',
    params,
  });
}
//新增
export function rowCreate(data = {}) {
  return request({
    url: `${mesUrl}wmsIqcTask`,
    method: 'post',
    data,
  });
}
//修改
export function rowUpdate(data = {}) {
  return request({
    url: `${mesUrl}wmsIqcTask`,
    method: 'put',
    data,
  });
}
//删除
export function rowDel(id) {
  return request({
    url: `${mesUrl}wmsIqcTask/${id}`,
    method: 'put',
  });
}
//下拉框字典等
// 查询订单状态列表
export function getOrderStatusList() {
  return request({
    url: `${adminUrl}dict/type/quality_status`,
    method: 'get',
  });
}
